namespace OasisCiq.Xal
{
    using System.Collections.Specialized;
    using CommonTypes;
    using External;
    using XS;

    /// <summary>
    /// Data associated with the locality. e.g. Full name of the locality
    /// or part of it, reference location to the locality
    /// </summary>
    public class LocalityNameElement : CTString, IAbbreviationGroup, IExtendedAttributes
    {
        public LocalityNameElement(string value)
            : base(value)
        {
        }

        public virtual XSBoolean Abbreviation { get; set; }

        /// <summary>
        /// semantics of data associated with name
        /// </summary>
        public virtual LocalityNameTypeList NameType { get; set; }

        /// <summary>
        /// name of locality represented as a code
        /// </summary>
        public virtual LocalityNameCodeList NameCode { get; set; }

        /// <summary>
        /// type of code used to represent name as a code
        /// </summary>
        public virtual CTString NameCodeType { get; set; }

        public virtual NameValueCollection ExtendedAttributes { get; set; }
    }
}